﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Dapper;
using MangoMes.Commont.DTOs;

namespace MangoMes.Commont.Infrastructures.Interfaces
{
    public interface IBateRepository<T> where T : class
    {
        IEnumerable<T> GetAll(string sql, T entity, string conter);
        Task<int> Add(string sql,T entity,string conter);
        Task<int> AddRang(string sql,List<T> entities,string conter);
        //object GetAll(string str, PickingsDto picking, string conn);
        //Task<int> Update(string sql, T entity, string conter);
        //Task<int> Delete(string sql, T entity, string conter);
    }
}
